home *** CD-ROM | disk | FTP | other *** search
/ Champak 109 / Vol 109.iso / games / stepp000.swf / scripts / DefineSprite_2192 / frame_14 / DoAction.as
Text File  |  2008-11-12  |  372b  |  22 lines

  1. if(random(100) < 50)
  2. {
  3.    gotoAndPlay(26);
  4.    tellTarget("_root.GardeDevant.GardeTir.Tir.Haut")
  5.    {
  6.       gotoAndStop("ArretTir");
  7.       play();
  8.    }
  9. }
  10. else
  11. {
  12.    tellTarget("../../GunSon")
  13.    {
  14.       play();
  15.    }
  16.    set("/Variables:Balle",random(10) + 1);
  17.    tellTarget("_root.Meg.Balle" + eval("/Variables:Balle"))
  18.    {
  19.       gotoAndPlay(2);
  20.    }
  21. }
  22.